﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="EmpInsuranceDetail.aspx.cs" Inherits="Employees_EmpInsuranceDetail" %>
<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<%@ Register Src="../Control/SelUser.ascx" TagName="SelUser" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="EmpInsurance" onadding="Master_Adding">
    </infolight:webdatasource>
    <fieldset title="员工保险" style="overflow: hidden">
        <legend style="font-size: large; font-weight: bold">员工保险</legend>
        <table style="width: 100%">
            <tr>
                <td>
                    <infolight:webnavigator id="wn" runat="server" bindingobject="EmpInsurance" oncommand="wnHr_Command"
                        showdatastyle="FormViewStyle" width="100%" statusstrip="WebStatusStrip1" 
                        anyqueryid="wn" CssClass="NavigatorBar" CtlHeight="25">
                        <navcontrols>
                <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/first.gif" MouseOverImageUrl="../image/uipics/first2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/first3.gif" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image"
                    ControlVisible="False" ImageUrl="../image/uipics/previous.gif" MouseOverImageUrl="../image/uipics/previous2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/previous3.gif" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/next.gif" MouseOverImageUrl="../image/uipics/next2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/last.gif" MouseOverImageUrl="../image/uipics/last2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                    
                    
                    
<InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Add3_C.gif" ImageUrl="../Image/UIPics/Add_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Add2_C.gif" Size="48">
                </InfoLight:ControlItem>
                 <InfoLight:ControlItem ControlName="Update" ControlText="update" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Edit3_C.gif" ImageUrl="../Image/UIPics/Edit_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Edit2_C.gif" Size="48">
                </InfoLight:ControlItem>
               
                <InfoLight:ControlItem ControlName="Delete" ControlText="埃" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/delete_C.gif" MouseOverImageUrl="../image/uipics/delete2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/delete3_C.gif" />
              

                    
                    
               
<InfoLight:ControlItem ControlName="Cancel" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Abort3_C.gif" ImageUrl="../Image/UIPics/Abort_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Abort2_C.gif" Size="48">
                </InfoLight:ControlItem>
<InfoLight:ControlItem ControlName="Apply" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Apply3_C.gif" ImageUrl="../Image/UIPics/Apply_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Apply2_C.gif" Size="48">
                </InfoLight:ControlItem>
                    
                    
                    
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/abort.gif" MouseOverImageUrl="../image/uipics/abort2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/abort3.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query.gif" MouseOverImageUrl="../image/uipics/query2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/query3.gif" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print.gif" MouseOverImageUrl="../image/uipics/print2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/print3.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Export3.gif" ImageUrl="../Image/UIPics/Export.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2.gif" Size="25" />
            </navcontrols>
                        <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
                    </infolight:webnavigator>
 
                         
                         
                         <infolight:webformview id="EmpInsurance" runat="server" datasourceid="Master" width="100%"
                        cellpadding="4" ondatabound="EmpInsurance_DataBound">
                        
                        <edititemtemplate>
              <table class="tbE" cellpadding="5">
     <tr>
         <td class="label1">
            保险编号：
         </td>
         <td class="readonly">
             <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("InsuranceDataId") %>' 
                 ReadOnly="True"></asp:TextBox>
                
         </td>
         <td class="label2">
            保险名称：
         </td>
         <td class="textbox">
             <InfoLight:WebDropDownList ID="InsuranceId" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsType" DataTextField="InsuranceName" 
                            DataValueField="InsuranceId" DriverObject="" Filter="" FilterObject="" 
                            onlyshowselecttext="True" 
                 SelectedValue='<%# Bind("InsuranceId") %>'>
                        </InfoLight:WebDropDownList>
         </td>
     </tr>
      <tr>
         <td class="label1">
            员工(<span style="color:Red">*</span>)：
         </td>
         <td class="textbox">
          <uc2:SelUser ID="SelUser" runat="server" />
         </td>
         
     </tr>
     <tr>
         <td class="label1">
            投保(<span style="color:Red">*</span>)：
         </td>
         <td class="textbox">
         <asp:TextBox ID="TextBox19" runat="server" 
                 onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                 Text='<%# Bind("StartDate", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>


         </td>
         <td class="label2">
            投保(<span style="color:Red">*</span>)：
         </td>
         <td class="textbox">
         
         <asp:TextBox ID="TextBox9" runat="server" 
                 onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                 Text='<%# Bind("EndDate", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>

         </td>
     </tr>
     <tr>
         <td class="label1">
            保额：
         </td>
         <td class="textbox">
         <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("InsuranceRating") %>' 
                ></asp:TextBox>
                
           
         </td>
         <td class="label2">
            保费：
         </td>
         <td class="textbox">
         <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("InsuranceFee") %>' 
               ></asp:TextBox>
          
         </td>
     </tr>
     
     <tr>
         <td class="label1">
            退保费：
         </td>
         <td class="textbox">
         
         <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("InsuranceFeeloan") %>' 
                ></asp:TextBox>
             
         </td>
          <td class="label2">
            逾期：
         </td>
         <td>
             <InfoLight:WebCheckBox runat="server" ID="Overdue" BindingType="Boolean" 
                 Checked='<%# Bind("Overdue") %>' KeyValues=""></InfoLight:WebCheckBox>
         </td>
     </tr>
     
                
                   
                  
                </table>
            </edititemtemplate>
                        <insertitemtemplate>
                        <table class="tbI" cellpadding="5">
     <tr>
         <td class="label1">
            保险编号：
         </td>
         <td class="readonly">
             <asp:TextBox ID="InsuranceDataId" runat="server" Text='<%# Bind("InsuranceDataId") %>' 
                 ReadOnly="True"></asp:TextBox>
                
         </td>
         <td class="label2">
            保险名称：
         </td>
         <td class="textbox">
             <InfoLight:WebDropDownList ID="InsuranceId" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsType" DataTextField="InsuranceName" 
                            DataValueField="InsuranceId" DriverObject="" Filter="" FilterObject="" 
                            onlyshowselecttext="False" 
                 SelectedValue='<%# Bind("InsuranceId") %>'>
                        </InfoLight:WebDropDownList>
         </td>
     </tr>
      <tr>
         <td class="label1">
            员工(<span style="color:Red">*</span>)：
         </td>
         <td class="textbox">
             <uc2:SelUser ID="SelUser" runat="server" />
         </td>
         
     </tr>
     <tr>
         <td class="label1">
            投保开始(<span style="color:Red">*</span>)：
         </td>
         <td class="textbox">
          <asp:TextBox ID="StartDate" runat="server" 
                 onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                 Text='<%# Bind("StartDate", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>

           
         </td>
         <td class="label2">
            投保结束(<span style="color:Red">*</span>)：
         </td>
         <td class="textbox">
         <asp:TextBox ID="EndDate" runat="server" 
                 onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                 Text='<%# Bind("EndDate", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>

         </td>
     </tr>
     <tr>
         <td class="label1">
            保额：
         </td>
         <td class="textbox">
         <asp:TextBox ID="InsuranceRating" runat="server" Text='<%# Bind("InsuranceRating") %>' 
                ></asp:TextBox>
                
           
         </td>
         <td class="label2">
            保费：
         </td>
         <td class="textbox">
         <asp:TextBox ID="InsuranceFee" runat="server" Text='<%# Bind("InsuranceFee") %>' 
               ></asp:TextBox>
          
         </td>
     </tr>
     
     <tr>
         <td class="label1">
            退保费：
         </td>
         <td class="textbox">
         
         <asp:TextBox ID="InsuranceFeeloan" runat="server" Text='<%# Bind("InsuranceFeeloan") %>' 
                ></asp:TextBox>
             
         </td>
          <td class="label2">
            逾期：
         </td>
         <td>
             <InfoLight:WebCheckBox runat="server" ID="Overdue" BindingType="Boolean" 
                 KeyValues="" Enabled="False"></InfoLight:WebCheckBox>
         </td>
     </tr>
     
                
                   
                  
                </table>
            </insertitemtemplate>
                        <itemtemplate>
               <table class="tbR" cellpadding="5">
     <tr>
         <td class="label1">
            保险编号：
         </td>
         <td class="readonly">
             <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("InsuranceDataId") %>' 
                 ReadOnly="True"></asp:TextBox>
                
         </td>
         <td class="label2">
            保险名称：
         </td>
         <td class="textbox">
             <InfoLight:WebDropDownList ID="InsuranceId" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsType" DataTextField="InsuranceName" 
                            DataValueField="InsuranceId" DriverObject="" Filter="" FilterObject="" 
                            onlyshowselecttext="True" 
                 SelectedValue='<%# Bind("InsuranceId") %>'>
                        </InfoLight:WebDropDownList>
         </td>
     </tr>
      <tr>
         <td class="label1">
             员工：
         </td>
         <td class="textbox">
             <uc2:SelUser ID="SelUser" runat="server" />
         </td>
         
     </tr>
     <tr>
         <td class="label1">
            投保开始：
         </td>
         <td class="textbox">
         <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("StartDate", "{0:d}") %>'/></asp:TextBox>

         </td>
         <td class="label2">
            投保结束：
         </td>
         <td class="textbox">
          <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("EndDate", "{0:d}") %>'/></asp:TextBox>
         </td>
     </tr>
     <tr>
         <td class="label1">
            保额：
         </td>
         <td class="textbox">
         <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("InsuranceRating") %>' 
                ></asp:TextBox>
                
           
         </td>
         <td class="label2">
            保费：
         </td>
         <td class="textbox">
         <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("InsuranceFee") %>' 
               ></asp:TextBox>
          
         </td>
     </tr>
     
     <tr>
         <td class="label1">
            退保费：
         </td>
         <td class="textbox">
         
         <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("InsuranceFeeloan") %>' 
                ></asp:TextBox>
             
         </td>
          <td class="label2">
            逾期：
         </td>
         <td>
             <InfoLight:WebCheckBox runat="server" ID="Overdue" BindingType="Boolean" 
                 Checked='<%# Bind("Overdue") %>' KeyValues="" Enabled="False"></InfoLight:WebCheckBox>
         </td>
     </tr>
     
                
                   
                  
                </table>
            </itemtemplate>
                        <fields>
                <InfoLight:FormViewField ControlID="InsuranceDataId" 
                    FieldName="InsuranceDataId" />
                <InfoLight:FormViewField ControlID="InsuranceId" 
                    FieldName="InsuranceId" />
                <InfoLight:FormViewField ControlID="EmployeeID" 
                    FieldName="EmployeeID" />
                <InfoLight:FormViewField ControlID="StartDate" FieldName="StartDate" />
                <InfoLight:FormViewField ControlID="EndDate" FieldName="EndDate" />
                <InfoLight:FormViewField ControlID="InsuranceRating" 
                    FieldName="InsuranceRating" />
                <InfoLight:FormViewField ControlID="InsuranceFee" 
                    FieldName="InsuranceFee" />
                <InfoLight:FormViewField ControlID="InsuranceFeeloan" 
                    FieldName="InsuranceFeeloan" />
                <InfoLight:FormViewField ControlID="Overdue" FieldName="Overdue" />
               
            </fields>
                    </infolight:webformview>
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
    
    <div style="text-align: center" runat="server" id="DivBack">
        <span class="roundbtn">
            <asp:LinkButton ID="Back" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返&nbsp;&nbsp;&nbsp;&nbsp;回&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
                OnClick="Back_Click"></asp:LinkButton>
        </span>
        
    </div>
     <InfoLight:WebDataSource ID="wdsType" runat="server" SelectAlias="Usasdb" 
        SelectCommand="select InsuranceId,InsuranceName from CommInsurance">
    </InfoLight:WebDataSource>
<InfoLight:WebDataSource ID="wdsEmp" runat="server" SelectAlias="Usasdb" 
        SelectCommand="select EmployeeId,EmpName from Employees">
    </InfoLight:WebDataSource>
    <InfoLight:WebDefault ID="WebDefault1" runat="server" DataSourceID="Master">
        <Fields>
            <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="InsuranceDataId"></InfoLight:DefaultFieldItem>
            <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="InsuranceRating"></InfoLight:DefaultFieldItem>
            <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="InsuranceFee"></InfoLight:DefaultFieldItem>
            <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="InsuranceFeeloan"></InfoLight:DefaultFieldItem>
        </Fields>
    </InfoLight:WebDefault>
    <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" 
        DataMember="" DataSourceID="Master" ForeColor="Red" RowCss="" 
        ValidateStyle="ShowDialog">
        <Fields>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="StartDate"></InfoLight:ValidateFieldItem>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="EndDate"></InfoLight:ValidateFieldItem>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="EmployeeID"></InfoLight:ValidateFieldItem>
        </Fields>
    </InfoLight:WebValidate>
     <asp:HiddenField ID="hidEid" runat="server" />
    <asp:HiddenField ID="hidEname" runat="server" />
</asp:Content>
